package javacommon.authority.controller;

import java.util.List;

import javacommon.authority.model.Role;

import com.jfinal.core.Controller;

public class RoleController extends Controller{
	public void list(){
		List<Role> roles = Role.dao.findAll();
		setAttr("data", roles);
		setAttr("status", "success");
		String para0 = getPara(0);
		if (para0!=null&&para0.equals("json")) {
			renderJson();
		}
	}
}
